#include "common.h"
/*
   Before the ArtistStart() ,the Schedule() don't take effect.The variable "WhoRunning" is used in the Schedule(),so we should 
   prepare it .
*/
PUBLIC VOID Artist()
{
   Init_Machine();
   Init_Env();
   Init_Pattern();
   Init_Manager(); /*Create the ServerManager process and init process,and add it to the process variable*/
   
//   Print("\n");
  // Print("the ram size:%#0cX\n",ramsize);
//   process=(PPROCESS)&server[0];
//   Print("%X",process);
  //   Print("%s",process->p_pprocessnext->p_pprocessnext->p_name);

   WhoRunning=process;  

  // Print("%X\n",sizeof(PROCESS));
 //  message.destination=MMSERVER;
  // message.type=MMSERVER_WHOIAM;
  // SendMessage(&message);
//  message.destination=1;
  // SendMessage(&message);
  // message.type=1;
  // SendMessage(&message);
  // message.destination=0;
   //SendMessage(&message);
//   Print("%X",sizeof(PROCESS));
 //  Assert(0);
   ArtistStart();
//    S2B  j=0;
//    S2B  i     = (U4B)MemoryGet4Byte(0x5000);
//    for(j=0;j<i;j++){
//     PKERNELPARAMETER p_parameters=(PKERNELPARAMETER)(0x5008+32*j);
//    Print("%#0cX,%#0cX,%#0cX,%#0cX,%#0cX,%#0cX,%#0cX,%#0cX\n",p_parameters->p1,p_parameters->p2,p_parameters->p3,p_parameters->p4,p_parameters->p5,p_parameters->p6,p_parameters->p7,p_parameters->p8);
//    }
//   Assert(0);
 //   Print("%#0cX\n",sizeof(PROCESS));
 //   Print("sizeof PAGEBLOCK%#0cX",sizeof(PAGEBLOCK));
   
//   Print("%X",sizeof(PROCESS));
}
